package com.zsk.shop.model.wechatDecode;

import lombok.Data;

import java.util.Date;

import static java.util.UUID.randomUUID;

/**
 * Created by lv on 2019/3/14 14:47.
 */
@Data
public class InterfaceRecord {
    public InterfaceRecord() {
        super();
        uuid = randomUUID().toString();
        createTime = new Date();
    }
    private long id;

    /**
     * 用户id
     */
    private String uuid;

    /**
     * 接口
     */
    private String name;

    /**
     * 结果 0 失败, 1 成功, 2 出错
     */
    private int result = 0;

    private String note;

    private Date createTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 结果 0 失败, 1 成功, 2 出错
     */
    public int getResult() {
        return result;
    }

    /**
     * 结果 0 失败, 1 成功, 2 出错
     */
    public void setResult(int result) {
        this.result = result;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "InterfaceRecord{" +
                "uuid='" + uuid + '\'' +
                ", name='" + name + '\'' +
                ", result=" + result +
                ", note='" + note + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
